
void gettime(double &min, double seconds){
    time_t rawtime;
    struct tm *ptminfo;
    time(&rawtime);
    min = ptminfo->tm_min;
    seconds = ptminfo->tm_sec;
    ptminfo = localtime(&rawtime);

    std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
    std::time_t now_timet = std::chrono::system_clock::to_time_t(now);

    char *p = ctime(&now_timet);
    tm *p1 = localtime(&now_timet);
}
